<?php $userType = $review['Review']['user_type'];?>
<div class="posted <?php if ($userType == Review::USER_TYPE_OWNER):?>
			owner<?php elseif ($userType == Review::USER_TYPE_JOINED):?>
			user<?php else:?>
			user<?php endif;?>" id="review<?php echo $review['Review']['id'];?>">
	<div class="postOwnerImage">
		<?php $userName = $this->User->getUsername($review);?>
		<?php if ($avatar = $review['Profile']['icon_image']):?>
			<?php
			echo $this->Html->link(
				$this->Html->image(Configure::read('User.upload_path_prefix') . $avatar, array('alt' => $userName, 'width' => 50, 'height' => 50)),
				array('controller' => 'profile', 'action' => 'view', $review['Review']['user_id']),
				array('escape' => false)
			);
			?>
		<?php else:?>
			<?php
			echo $this->Html->link(
				$this->Html->image('icon.jpg', array('alt' => $userName, 'width' => 50, 'height' => 50)),
				array('controller' => 'profile', 'action' => 'view', $review['Review']['user_id']),
				array('escape' => false)
			);
			?>
		<?php endif;?>
	</div>
	<div class="postedContent">
		<div class="parrentPosted">
			<div class="content">
				<h4 class="usernames">
					<?php echo $this->Html->link($userName, array('controller' => 'profile', 'action' => 'view', $review['Review']['user_id']));?>
				</h4>
				<div class="description">
					<?php echo $review['Review']['content'];?>
				</div>
			</div>
			<?php if (isset($userLogon['User']['id']) && $userLogon['User']['id'] == $review['Review']['user_id']):?>
			<ul class="postedNav">
				<li><a href="#" class="jsDeleteReview" data-id="<?php echo $review['Review']['id'];?>">レビューを削除する</a></li>
			</ul>
			<?php endif;?>
		</div>
	</div>
</div><!-- /.posted -->